<template>
  <div>
    <nav-layout :layout="layout"></nav-layout>
    <order-number v-if="layout.indexof === 0"></order-number>
    <order-detailst v-else></order-detailst>
  </div>
</template>
<script>
import navLayout from "@/views/NavLayout";
import orderNumber from "./orderNumber";
import orderDetailst from "./orderDetailst";
export default {
  data() {
    return {
      layout: {
        nav: ["找订单号", "订单详情"],
        indexof: 0
      }
    };
  },
  components: {
    navLayout,
    orderNumber,
    orderDetailst
  }
};
</script>